#include "dominion.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "rngs.h"
#include <assert.h>

void functionSmith(int k[10], struct gameState* GameS, char** argv) {
	int numPlayers = 2;
	int num1 = 0, num2 = 0, num4 = 0, handPos = 0, num3 = 0, rotate = 0;
	for (num1 = 2; num1 <= 4; num1++) {
		numPlayers = num1;
		for (num2 = 0; num2 < numPlayers; num2++) {
			initializeGame(numPlayers, k, atoi(argv[1]), &*GameS);
			GameS->whoseTurn = num2;
			num4 = GameS->handCount[num2];
			cardEffect(smithy, 0, 0, 1, &*GameS, handPos, &num3);
			if (GameS->handCount[num2] == num4 + 2) {
				// the plus 3 card
				rotate = rotate + 1;
			} else
				printf("something happened here");
		}
	}
}

int main(int argc, char** argv){
    struct gameState GameS;
    int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse,
        sea_hag, baron, great_hall};
	functionSmith(k, &GameS, argv);
    printf("all passsed");

    return 0;
}

